package com.spring.cold.security;

import org.springframework.security.core.GrantedAuthority;
import org.springframework.security.core.userdetails.User;

import java.util.Collection;

/**
 *
 */
public class CustomizeUser extends User {

  private static final long serialVersionUID = 500L;
  private String id;
  private String name;
  private String isAdmin;

  public CustomizeUser(String id,String name,String isAdmin,String loginName, String password,
                       Collection<? extends GrantedAuthority> authorities) {
    super(loginName, password, authorities);
    this.id=id;
    this.name=name;
    this.isAdmin=isAdmin;
  }

  public String getName() {
    return name;
  }

  public void setName(String name) {
    this.name = name;
  }

  public String getId() {
    return id;
  }

  public void setId(String id) {
    this.id = id;
  }

  public String getIsAdmin() {
    return isAdmin;
  }

  public void setIsAdmin(String isAdmin) {
    this.isAdmin = isAdmin;
  }
}
